import type { AppRouteRecordRaw } from '@/router/types';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const myProject: AppRouteRecordRaw = {
  path: '/myProject',
  name: 'MyProject',
  component: LAYOUT,
  // redirect: '/myProject/appraisal',
  meta: {
    title: t('routes.demo.myProject.myProject'),
    icon: 'vscode-icons:file-type-testcafe',
    orderNo: 4,
    hideBreadcrumb: false,
    hideChildrenInMenu: false,
    hideMenu: false,
  },
  children: [
    {
      path: 'appraisal',
      name: 'appraisal',
      component: () => import('@/views/myProject/appraisal/index.vue'),
      meta: {
        title: t('routes.demo.myProject.appraisal'),
        hideMenu: false,
      },
    },
  ],
};

export default myProject;
